/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package be.hogent.designpatterns.billenkar.states;

import be.hogent.designpatterns.billenkar.Billenkar;

/**
 *
 * @author Jeroen
 */
public class InWinkelStatus implements Status {

    private Billenkar kar;

    public InWinkelStatus(Billenkar kar) {
        this.kar = kar;
    }

    public void verhuurBillenkar() {
        if(kar.getPrijs() > 0) { //enkel verhuren als we winst kunnen maken
            kar.setStatus(kar.getVerhuurdStatus());
        }
    }

    public void repareerBillenkar() {
        kar.setStatus(kar.getInReparatieStatus());
    }

    public void zetBillenkarInWinkel() {
        // is al in winkel
    }
    @Override
   public String toString() {
      return "In Winkel";
   }

}
